<?php

    if (!defined('BASEPATH'))
        exit('No direct script access allowed');

    $route['default_controller'] = "main";
    $route['404_override'] = '';

    $route['(:any)/search'] = "main/search";
    $route['(:any)/popular'] = "main/popular";
    $route['(:any)/sort_hotels'] = "main/sort_hotels";
    $route['(:any)/accommodation/(:any)'] = "main/accommodation/$2";
    $route['(:any)/details'] = "main/details";
    $route['(:any)/checkout_step_1'] = "main/checkout_step_1";
    $route['(:any)/checkout_step_2'] = "main/checkout_step_2";
    $route['(:any)/checkout_step_3'] = "main/checkout_step_3";
    $route['(:any)/terms_and_conditions'] = "main/terms_and_conditions";
    $route['(:any)/general_terms'] = "main/general_terms";
    $route['(:any)/reservation_cancellation'] = "main/reservation_cancellation";
    $route['(:any)/cancellation_confirmation'] = "main/cancellation_confirmation";
    $route['(:any)/hotel_details_map/(:any)'] = "main/hotel_details_map/$1";
    $route['(:any)/subscribe'] = "main/subscribe";


// example: '/en/about' -> use controller 'about'
    $route['^me/(.+)$'] = "$1";
    $route['^en/(.+)$'] = "$1";
    $route['^ru/(.+)$'] = "$1";
    $route['^de/(.+)$'] = "$1";
// '/en' and '/me' -> use default controller

    $route['^me$'] = $route['default_controller'];
    $route['^en$'] = $route['default_controller'];
    $route['^ru$'] = $route['default_controller'];
    $route['^de$'] = $route['default_controller'];




    /* End of file routes.php */
/* Location: ./application/config/routes.php */